]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Remove background-color from .workspace-background
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 27 May 2021 09:47:14 +0000 (17:47 +0800)
committerMarge Bot <marge-bot@gnome.org>
Wed, 30 Jun 2021 12:28:08 +0000 (12:28 +0000)
It's not visible because it's covered by the actual wallpaper, so
not rendering it eliminates most of the render time for
`workspace-background`, without changing its appearance.

When animating the overview by tapping Super, this reduces the
shell's overall render time by about 15%.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1904>

data/theme/gnome-shell-sass/widgets/_window-picker.scss

index b3b93f291a1c01653f922abed428df0a3e376110..fa3f19194502ff35f8331b88eeaf54cb972f46e1 100644 (file)
@@ -48,6 +48,5 @@ $window_close_button_padding: 3px;
 .workspace-background {
   // keep in sync with BACKGROUND_CORNER_RADIUS_PIXELS in workspace.js
   border-radius: 30px;
-  background-color: $osd_bg_color;
   box-shadow: 0 4px 16px 4px transparentize(darken($osd_bg_color, 30%), 0.7);
 }